package com.dbuil.bleshoes.ui.activity;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.dbuil.bleshoes.R;
import com.dbuil.bleshoes.adapter.WuliuAdapter;
import com.dbuil.bleshoes.base.BaseActivity;
import com.dbuil.bleshoes.bean.WuLiuBean;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

import butterknife.OnClick;

public class WuliuActivity extends BaseActivity {
    @BindView(R.id.img_back)
    ImageView imgBack;
    @BindView(R.id.tv_top_title)
    TextView tvTopTitle;
    @BindView(R.id.tv_top_right)
    TextView tvTopRight;
    @BindView(R.id.img_top_right)
    ImageView imgTopRight;
    @BindView(R.id.recycle_wuliu)
    RecyclerView mRecycle;


    @Override
    public int getLayoutId() {
        return R.layout.activity_wuliu;
    }

    @Override
    public void initView() {
        super.initView();
        mRecycle.setLayoutManager(new LinearLayoutManager(this));
        tvTopTitle.setText("物流信息");

    }

    @Override
    public void initData() {
        super.initData();
        List<WuLiuBean> listdata = new ArrayList<>();
        for (int i = 0; i < 18; i++) {

            listdata.add(new WuLiuBean("", "", i));
        }
        WuliuAdapter mAdapter = new WuliuAdapter(listdata);
        mRecycle.setAdapter(mAdapter);

    }

    @OnClick(R.id.img_back)
    public void onViewClicked() {
        this.finish();
    }
}
